package com.dzl.constant;

import com.dzl.util.MD5Util;

public class ChuanglanConstant {

	public final static String USERNAME = "15827215462";
	
	public final static String PASSWORD = "Tch818181";
	
	// 时间戳
	public final static Long TIMESTAMP = System.currentTimeMillis()/1000;
	//签名 
	public final static String SIGNATURE = MD5Util.MD5Encode(USERNAME+PASSWORD+getTimestamp(),"UTF-8");
	//public final static String SIGNATURE = MD5Util.MD5Encode(USERNAME+PASSWORD+TIMESTAMP,"UTF-8");
	
	//添加短信模板地址
	public final static String ADD_TEMPLATE_URL = "https://zz.253.com/apis/template/add";
	
	//删除签名模板地址
	public final static String DEL_SIGNATURE_URL = "https://zz.253.com/apis/signature/del";
	
	
	// 营销短信API账号(非登录账号,示例:N1234567)
    public static final String MARKETING_ACCOUNT= "M4465341";
    // 营销短信API密码(非登录密码)
    public static final String MARKETING_PASSWORD = "bF7eVG2NTh41fd";
    //短信通知账号
    public static final String MESSAGE_ACCOUNT="N0166667";
    //短信通知密码
    public static final String MESSAGE_PASSWORD="HgAqRQtXp65afe";
	//短信验证码账号
	public static final String YZM_ACCOUNT  = "YZM1766647";
	//短信验证码密码
	public static final String YZM_PASSWORD  = "kN7dUphqRx9d7d";
	public static final String smsSingleRequestServerUrl = "http://smssh1.253.com/msg/send/json";


	public final static String getTimestamp() {
		String timestamp = String.valueOf(System.currentTimeMillis());
		timestamp = timestamp.substring(0,timestamp.length()-3);
		return timestamp;
	}
}
